<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>User Information</title>
    <script src="/js/app.js"></script>
    <style>
        body {
            font-family: Arial, sans-serif;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
        }
        .user-info {
            border: 1px solid #ddd;
            border-radius: 5px;
            padding: 20px;
            margin: 20px 0;
            background-color: #f9f9f9;
        }
        .user-info h2 {
            margin-top: 0;
            color: #333;
        }
        .info-item {
            margin: 10px 0;
        }
        .info-label {
            font-weight: bold;
            display: inline-block;
            width: 120px;
        }
        .nav-links {
            margin: 20px 0;
        }
        .nav-links a {
            margin-right: 15px;
            text-decoration: none;
            color: #007bff;
        }
        .nav-links a:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <h1>User Information</h1>
    
    <div class="nav-links">
        <a href="/">Home</a>
        <a href="/demo">Demo</a>
        <a href="/protected">Protected</a>
        <a href="/logout">Logout</a>
    </div>
    
    <div class="user-info">
        <h2>User Details</h2>
        <div class="info-item">
            <span class="info-label">Username:</span>
            <span th:text="${username}">-</span>
        </div>
        <div class="info-item">
            <span class="info-label">Nickname:</span>
            <span th:text="${nickname}">-</span>
        </div>
        <div class="info-item">
            <span class="info-label">Email:</span>
            <span th:text="${email}">-</span>
        </div>
        <div class="info-item">
            <span class="info-label">Phone:</span>
            <span th:text="${phone}">-</span>
        </div>
        <div class="info-item">
            <span class="info-label">Roles:</span>
            <span th:text="${roles}">-</span>
        </div>
        <div class="info-item">
            <span class="info-label">Status:</span>
            <span th:text="${status}">-</span>
        </div>
        <div class="info-item">
            <span class="info-label">Create Time:</span>
            <span th:text="${createTime}">-</span>
        </div>
        <div class="info-item">
            <span class="info-label">Last Login:</span>
            <span th:text="${lastLoginTime}">-</span>
        </div>
    </div>
</body>
</html>